@extends('layouts.page')
@section('title', '增加用户')

@section('block', '增加用户')

@section('body')
<div class="card">
    <div class="card-body">
        <form class="layui-form" method="post" action="{{ url('staff/user') }}">
            @csrf
            <div class="layui-form-item">
                <label class="layui-form-label">姓名:</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" lay-verify="required" name="name" placeholder="姓名(必填)">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">密码:</label>
                <div class="layui-input-block">
                    <input type="password" class="layui-input" lay-verify="required" name="password" placeholder="密码(必填)">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">重复密码:</label>
                <div class="layui-input-block">
                    <input type="password" class="layui-input" lay-verify="required" name="rePassword" placeholder="重复密码(必填)">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">手机号码:</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" lay-verify="required" name="rePassword" placeholder="手机号码(必填)">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">小程序ID:</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" name="open_id" placeholder="小程序ID">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">调查时间:</label>
                    <div class="layui-input-inline" style="width: 100px;">
                        <input type="text" id="begin_at" name="begin_at" placeholder="1970-01-01" autocomplete="off" class="layui-input">
                    </div>
                    <div class="layui-form-mid">-</div>
                    <div class="layui-input-inline" style="width: 100px;">
                        <input type="text" name="end_at" id="end_at" placeholder="2028-01-01" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">启用账号</label>
                <div class="layui-input-block">
                    <input type="checkbox" checked name="is_able" lay-skin="switch" lay-text="启用|禁用">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn layui-btn-normal" id="submitBtn">提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
@endsection

@section('js')
<script src="{{ asset('js/jQuery.js') }}" ></script>
<script type="text/javascript">
var index = parent.layer.getFrameIndex(window.name);
layui.use(['layer', 'form', 'laydate'], function () {
    var layer = layui.layer
        ,form = layui.form;
    layui.laydate.render({
        elem: '#begin_at'
    });
    layui.laydate.render({
        elem: '#end_at'
    });


    function checkeForm() {
        return false
    }
});
function ad() {
    alert('123')
}
</script>
@endsection